package com.yuw.chengyuaninnerclass;

public class Student {
    // 属性 -- 成员变量
    private String stuName;
    private String stuNum;
    private Integer stuAge;

    // 成员内部类
    class StuFamily {
        // 属性
        private String struMotherName;
        private String stuFatherName;
        private String stuFamilyPhone;
        // 行为

        public StuFamily() {
        }

        public StuFamily(String struMotherName, String stuFatherName, String stuFamilyPhone) {
            this.struMotherName = struMotherName;
            this.stuFatherName = stuFatherName;
            this.stuFamilyPhone = stuFamilyPhone;
        }

        public String getStruMotherName() {
            return struMotherName;
        }

        public void setStruMotherName(String struMotherName) {
            this.struMotherName = struMotherName;
        }

        public String getStuFatherName() {
            return stuFatherName;
        }

        public void setStuFatherName(String stuFatherName) {
            this.stuFatherName = stuFatherName;
        }

        public String getStuFamilyPhone() {
            return stuFamilyPhone;
        }

        public void setStuFamilyPhone(String stuFamilyPhone) {
            this.stuFamilyPhone = stuFamilyPhone;
        }

        public void printFamilyInfo() {
            System.out.println("学生姓名：" + stuName);
            System.out.println("学生家庭信息");
        }
    }

    // 行为

    public Student() {
    }

    public Student(String stuName, String stuNum, Integer stuAge) {
        this.stuName = stuName;
        this.stuNum = stuNum;
        this.stuAge = stuAge;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public void doStuding() {
        System.out.println(this.stuName + " is studing...");
    }
}
